﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

/// <summary>
/// Summary description for LoggedInPageBase
/// </summary>
public class LoggedInPageBase : PageBase
{
    public LoggedInPageBase()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    protected override void OnInit(EventArgs e)
    {
        //if not looged in redirect
        if (AcmsUser == null || AcmsUser.User == null)
        {
            AcmsContext.RedirectToLoginPage(this);
        }
        else
        {
            base.OnInit(e);
        }
    }

}
